﻿{extend name="public:base" /}

{block name="css"}
<style>
    .profit-box{
      display: flex;
    }

    .profit-box div{
      font-size: 16px;
      font-weight: bold;
      margin-right: 30px;
    }
</style>
{/block}

{block name="content"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox ">
                <div class="ibox-title">
                    <div class="profit-box">
                        <div>总收益：{$info.all_profit}</div>
                        <div>已结算：{$info.all_profit - $info.freeze_profit}</div>
                        <div>未结算：{$info.freeze_profit}</div>
                    </div>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="iconfont icon-chevron-up"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">

                    <div class="table-responsive">
                        <table class="table table-striped">
                            <thead>
                            <tr>
                                <th>订单号</th>
                                <th>订单金额</th>
                                <th>收益</th>
                                <th>状态</th>
                                <th>创建时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            {volist name="list" id="vo"}
                            <tr>
                                <td>{$vo.order_sn}</td>
                                <td>{$vo.order_price}</td>
                                <td>{$vo.profit}</td>
                                <td>{$vo.status == 1 ? '未结算' : '已结算'}</td>
                                <td>{$vo.create_time|timeFormat}</td>
                            </tr>
                            {/volist}
                            </tbody>
                        </table>
                        {if !empty($list)}{$list->render()}{/if}
                    </div>

                </div>
            </div>
        </div>

    </div>
</div>

{/block}

